// data/local/entity/SavedGameEntity.kt
package com.hwpt.chesedemo.data.local.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "saved_games")
data class GameRecordEntity(
    @PrimaryKey
    val id: String,
    val pgn: String,
    val playerColor: String,
    val aiDifficulty: String,
    val result: String,
    val moveCount: Int,
    val createdAt: Long,
    val gameDuration: Long = 0 // 游戏时长（毫秒）
)